package com.gnerv.sylvanas.business.manage.model.bo;

import com.gnerv.sylvanas.business.manage.model.entity.Route;
import lombok.Data;
import org.springframework.beans.BeanUtils;

/**
 * 路由表
 */
@Data
public class RouteBO {

    private String ukId;
    private String parentUkId;
    private String name;
    private String type;
    private String description;
    private String path;
    private String fullPath;
    private String component;
    private String meta;
    private String status;
    private Integer sort;

    public Route toRoute() {
        Route route = new Route();
        BeanUtils.copyProperties(this, route);
        route.setGmtCreate();
        route.setGmtModified();
        return route;
    }
}